#ifndef MAPELEMENT_H
#define MAPELEMENT_H

#include <QGraphicsItem>
#include <QVector2D>


class MapElement : public QGraphicsItem
{

protected:
    QRectF m_boundingRect;
    QPoint m_p1;
    QPoint m_p2;
public:
    MapElement(QPoint p1,QPoint p2);
    MapElement(){}
    bool isColliding(QPointF);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget);
    QRectF  boundingRect() const;
    void    setBoundingRect(QRectF);
    ~MapElement(){}
};

#endif // MAPELEMENT_H
